package com.qf.pojo;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component  //将当前类交给Spring管理
public class StuDao {
    @Autowired //根据类型完成自动注入
    private SqlSession sqlSession;
    public void selectStu(){
        System.out.println(sqlSession);
    }
}
